package com.guigu.tms.base.service;

import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.tms.commons.entity.base.PdTruck;
import com.guigu.tms.commons.entity.base.VehicleManagement;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 车辆信息表 服务类
 * </p>
 *
 * @author wj
 * @since 2022-09-26
 */
public interface IPdTruckService extends IService<PdTruck> {

    /**
     * 分页带条件查询车辆信息
     * @param map
     * @return
     */
    PageInfo<VehicleManagement> findTruckList(Map<String,String> map);

    /**
     * 查询所有车辆信息
     * @return
     */
    List<PdTruck> findAllPdTruck();

    /**
     * 添加车辆相信息
     * @param
     * @return
     */
    int AddPdTruck(VehicleManagement vehicleManagement);

    /**
     * 根据id删除车辆信息
     * @param truckId
     * @return
     */
    int DeleteTruckByid(Integer truckId);

    /**
     * 修改保存车辆信息
     * @param vehicleManagement
     * @return
     */
    int SaveTruck(VehicleManagement vehicleManagement);
}
